#include <stdio.h>

struct person {
    char *name;
    int   age;
    int   sex;
    int (*get_name)(struct person *self, int a);
};

typedef struct person person_t;

int get_name(person_t *self, int a) {
    return self->age;
}

int main(int argc, char *argv[])
{
    person_t p;
    p.name = "liming";
    p.age = 15;
    p.sex = 1;
    p.get_name = get_name;

    p.get_name(&p, 2);

    return 0;
}
